const state = {
  instruction: null,
  lat: null,
  lon: null
}

const mutations = {
  updateInstruction: (state, payload) => {
    state.instruction = payload
  },
  lat: (state, payload) => {
    state.lat = payload
  },
  lon: (state, payload) => {
    state.lon = payload
  }
}

export default {
  namespaced: true,
  state,
  mutations
}
